﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="ELearningTutorials._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="StyleSheet1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" CssClass="emboldened" 
            DataSourceID="TutorialsDataSource">
            <Columns>
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:HyperLinkField DataNavigateUrlFields="Link" DataTextField="Title" 
                    HeaderText="Title" SortExpression="Title" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="TutorialsDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TutorialConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:TutorialConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Title], [Link], [Description] FROM [Tutorial_List]">
        </asp:SqlDataSource>
        <br />
        <br />
        <asp:LinkButton ID="LinkButton1" runat="server" BorderStyle="Outset">LinkButton</asp:LinkButton>
    
    </div>
    </form>
</body>
</html>
